package com.chance.cc.crawler.prod.command.trigger.domain.news.meipai;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.meipai.realtime.*;
import com.chance.cc.crawler.prod.command.job.domain.news.meipai.trace.*;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author bx
 * @date 2020/12/7 0007 11:15
 */
public class MeiPaiScheduleTrigger extends CommonCrawlerSchedulerTrigger {

    public static void main(String[] args) {//运行工作爬虫
////        热门
//        publishMeiPaiHotScheduleTriggerInfo(MeiPaiHotCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiHotCommentScheduleTriggerInfo(MeiPaiHotCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
//        publishMeiPaiHotRealtimeScheduleTriggerInfo(MeiPaiHotRealtimeCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiHotCommentRealtimeScheduleTriggerInfo(MeiPaiHotRealtimeCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
////        运动
//        publishMeiPaiExerciseScheduleTriggerInfo(MeiPaiExerciseCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiExerciseCommentScheduleTriggerInfo(MeiPaiExerciseCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
//        publishMeiPaiExerciseRealtimeScheduleTriggerInfo(MeiPaiExerciseRealtimeCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiExerciseCommentRealtimeScheduleTriggerInfo(MeiPaiExerciseRealtimeCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
////      爱豆
//        publishMeiPaiIdolScheduleTriggerInfo(MeiPaiIdolCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiIdolCommentScheduleTriggerInfo(MeiPaiIdolCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
//        publishMeiPaiIdolRealtimeScheduleTriggerInfo(MeiPaiIdolRealtimeCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiIdolCommentRealtimeScheduleTriggerInfo(MeiPaiIdolRealtimeCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
////      穿秀
//        publishMeiPaiStyleScheduleTriggerInfo(MeiPaiStyleCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
//        publishMeiPaiStyleCommentScheduleTriggerInfo(MeiPaiStyleCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());
//        publishMeiPaiStyleRealtimeScheduleTriggerInfo(MeiPaiStyleRealtimeCrawlerScheduleJob.publishCrawlerScheduleJobInfo());
        publishMeiPaiStyleCommentRealtimeScheduleTriggerInfo(MeiPaiStyleRealtimeCommentCrawlerScheduleJob.publishCommentCrawlerScheduleJobInfo());

    }

    public static void publishMeiPaiHotScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 1 * * ?", "美拍热门文章每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiHotCommentScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 3 * * ?", "美拍热门评论每天3点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiHotRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍热门文章每天10分钟采集一次");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiHotCommentRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍热门评论每天10分钟采集一次");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }



    public static void publishMeiPaiExerciseScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 2 * * ?", "美拍运动每天2点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiExerciseCommentScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 4 * * ?", "美拍运动每天4点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiExerciseRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍热门每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiExerciseCommentRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍热门每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }



    public static void publishMeiPaiIdolScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 3 * * ?", "美拍爱豆每天3点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiIdolCommentScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 5 * * ?", "美拍热门每天5点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiIdolRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍爱豆每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiIdolCommentRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍爱豆每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }




    public static void publishMeiPaiStyleScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 4 * * ?", "美拍穿秀每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiStyleCommentScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0 6 * * ?", "美拍穿秀每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiStyleRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍穿秀每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }
    public static void publishMeiPaiStyleCommentRealtimeScheduleTriggerInfo(CrawlerJob crawlerJob){//实时调度触发信息
        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(//添加调度爬虫触发
                crawlerJob.generateCrawlerKey(),//生成爬虫key
                crawlerJob.generateCrawlerTriggerKey(),//生成爬虫触发key
                MeiPaiHotCrawlerScheduleJob.domain,//工作的域
                CrawlerMetaConstant.ScheduleJobTrigger_Cron, "0 0/10 * * * ?", "美拍穿秀每天1点定时采集");//采集信息-
        System.out.println("添加采集调度： "+page.getRawText());//调度文本
    }




}
